package com.hfut.wxy.entity.mysql;

import com.alibaba.fastjson.annotation.JSONField;
import com.hfut.wxy.common.parent.WxyBase;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.springframework.stereotype.Component;

import javax.persistence.*;

@Setter
@Getter
@Entity
@Table(name = "wxyaddress")
@DynamicInsert
@DynamicUpdate
public class WxyAddress extends WxyBase {

    @Column(columnDefinition = "varchar(80) comment '详细地址'")
    private String address;

    @Column(columnDefinition = "int comment '用户id'")
    private Integer userId;

    @Column(columnDefinition = "bit(1) comment '是否默认' ")
    private Boolean isDefault;

    @Column(columnDefinition = "varchar(8) comment '姓名'")
    private String name;

    @Column(columnDefinition = "varchar(80) comment '手机号'")
    private String phone;
}
